<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;


/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});
//测试
Route::get('/projects',"App\Http\Controllers\ProjectsController@projects");
Route::get('/modules',"App\Http\Controllers\ModulesController@modules");
Route::get('/requirement_order_colors',"App\Http\Controllers\RequirementsController@order_colors");
Route::get('/admin_users',"App\Http\Controllers\AdminController@admin_users");
Route::get('/admin_users_array',"App\Http\Controllers\AdminController@admin_users_array");
Route::get('/requirements',"App\Http\Controllers\RequirementsController@requirements");
Route::get('/requirements_array',"App\Http\Controllers\RequirementsController@requirements_array");
Route::post('/store_remind',"App\Http\Controllers\RemindsController@store_remind");
Route::get('/get-work-log/{adminUserId}',"App\Http\Controllers\RemindsController@ajax_reminds");
Route::post('/mark-reminder-as-received/{remindId}',"App\Http\Controllers\RemindsController@ajax_received");